package com.fary.imports;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import javax.annotation.PostConstruct;

@Configuration
@Import(TestServiceImpl.class)
public class Test1Configuration {

    @Autowired
    private TestServiceImpl testService;
    @PostConstruct
    public void pstTest(){
        System.out.println(testService.getStr("liming"));
    }
}
